
#include "common.h"
#include "projectitem.h"
#include "projectfile.h"
#include "projectfolder.h"

ProjectItem* fromItemType( const QString& type )
{
	if (type == QLatin1String("ProjectFile"))
	{
		return new ProjectFile();
	}

	if (type == QLatin1String("ProjectFolder"))
	{
		return new ProjectFolder();
	}

	return 0;
}
